package com.drug.wms.error;

public enum BusinessError implements CommonError {

    SYS("10001" , "系统繁忙,请稍后再试."),

    SEQ_FULL("10002" , "序列生成已达到最大值."),

    NO_ROW("10003" , "未查询到当前序列配置."),
    ;

    private String code;

    private String msg;


    BusinessError(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public CommonError setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
